﻿using OilRigSumoWrestlers.Controllables.Controllers;
using OilRigSumoWrestlers.Controllables.GameModes;
using OilRigSumoWrestlers.Levels;
using OilRigSumoWrestlers.Scenes;
using OilRigSumoWrestlers.Scenes.Menu;
using RaptorEngine;
using RaptorEngine.Components;
using RaptorEngine.Components.Drawable;
using Microsoft.Xna.Framework;
using OilRigSumoWrestlers.KeyBindings;
using RaptorEngine.Managers;

namespace OilRigSumoWrestlers.Entities.MenuItems
{
    class MultiplayerLocalItem : MenuItem
    {
        public MultiplayerLocalItem(DrawableText selectedText, DrawableText deselectedText)
            : base(selectedText, deselectedText) { }

        public override void Execute()
        {
            GameEngine.Instance.Scene.HideCurrentScene();
            GameEngine.Instance.Scene.StopCurrentScene();
            GameEngine.Instance.Scene.PushScene(new LocalLobby());
            GameEngine.Instance.Scene.StartCurrentScene();
            GameEngine.Instance.Scene.ShowCurrentScene();
        }
    }
}
